tm(){
   date +"%a %d-%m-%Y %H:%M:%S"  
}

battery(){ 
   cat /sys/class/power_supply/BAT0/capacity
}

#bat_status=""
#case $(battery) in
#	92) echo "bg^(#ffff00) $(battery)% bg^()" ;;
#	*)
#esac

while true; do
	echo "^bg(#333333) $(tm) ^bg() |  BATTERY $(battery)% "; 
	sleep 1 ;
done 
